# SerendipityImporter plugin for Movable Type
# Author: Robert Bohne
#
# $Id: SerendipityImporter.pl 5 2008-09-29 13:04:37Z Robert.Bohne $

package MT::Plugin::SerendipityImporter;

use strict;
use base qw( MT::Plugin );

my $plugin = new MT::Plugin::SerendipityImporter({
    name => "Serendipity Importer",
    version => '0.1',
    description => '<MT_TRANS phrase="Import Serendipity into Movable Type.">',
    author_name => "Robert Bohne",
    author_link => "http://code.google.com/p/serendipityimporter/",
    l10n_class => 'SerendipityImporter::L10N',
});
MT->add_plugin($plugin);

sub init_registry {
    my $plugin = shift;
    $plugin->registry({
        'import_formats' => {
            'import_s9y' => {
                label => 'Serendipity',
                type => 'SerendipityImporter::Import',
                handler => 'SerendipityImporter::Import::import_contents',
				options => [ 's9y_url', 'proxy_server' ],
                options_template => 'option.tmpl',
               	options_param => 'SerendipityImporter::Import::get_param',
            },
        },
    });
}

1;
